package cn.rayfoo.common.response;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author rayfoo@qq.com
 * @version 1.0
 * <p>分页结果</p>
 * @date 2020/9/1 15:50
 */
@Data
@Builder
@Accessors(chain = true)
@ApiModel("返回说明")
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {

    private Long total;
    private List<T> rows;

}
